home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / TXT / COMPILE.TXT < prev    next >
Text File  |  1997-06-17  |  4KB  |  72 lines

  1. There are many BAT files within QLIB to help you.
  2.  
  3. these are to compile programs to EXE files
  4.   MASM2EXE.BAT - compile with MASM v6.11 (using ML.EXE)
  5.   TASM2EXE.BAT - compile with TASM32.EXE (using TASM32.EXE)
  6.   BC2EXE.BAT - compile with Borland C v4.5 (and v5.0) (using BCC32.EXE)
  7.   WC2EXE.BAT - compile with Watcom C v10.6 (using WCC386.EXE)
  8.   MC2EXE.BAT - compile with Microsoft Visual C++ v4.x (using CL.EXE)
  9.   BCPP2EXE.BAT - compile with Borland C v4.5 (and v5.0) (using BCC32.EXE)
  10.   WCPP2EXE.BAT - compile with Watcom C v10.6 (using WPP386.EXE)
  11.   MCPP2EXE.BAT - compile with Microsoft Visual C++ v4.x (using CL.EXE)
  12.  
  13. these just create the OBJ file (no link):
  14.   MASM2OBJ.BAT - compile with MASM v6.11
  15.   TASM2OBJ.BAT - compile with TASM32.EXE
  16.   BC2OBJ.BAT - compile with Borland C v4.5 (and v5.0)
  17.   WC2OBJ.BAT - compile with Watcom C v10.6
  18.   MC2OBJ.BAT - compile with Microsoft Visual C++ v4.x (using CL.EXE)
  19.   BCPP2OBJ.BAT - compile with Borland C v4.5 (and v5.0)
  20.   WCPP2OBJ.BAT - compile with Watcom C v10.6
  21.   MCPP2OBJ.BAT - compile with Microsoft Visual C++ v4.x (using CL.EXE)
  22.  
  23. others
  24.   QLINK.BAT - link multiply OBJ and LIBs together
  25.   QMAKE.BAT - runs NMAKE
  26.   BUG.BAT - invokes WD.EXE (watcom debugger) to debug a program
  27.   QLITE.BAT - uses PMWLITE to compress an EXE file (giving it needed options)
  28.   QSETUP.EXE - this works the same as PMWSETUP but has only 2 options to
  29.              -  control how much memory QLIB will alloc on startup
  30.              -  this is better than using the PMWSETUP because this will
  31.              -  work under RAW,XMS,VCPI and DPMI unlike PMWSETUP.  But you'll
  32.              -  still need to use PMWSETUP.
  33.              - See qsetup.txt for more info
  34.  
  35. Notes:
  36.   All xxx2exe.bat files use QLINK to link the final EXE.
  37.   You can run each BAT file without any arguments to get help on that
  38.     BAT files usage.
  39.   The default math LIBs are the Borland/Visual C Compatiable Math LIBs
  40.     except when using WC2EXE.BAT or WCPP2EXE.BAT. (see math.txt)
  41.     QLINK uses the Borland/Visual C Compatible LIBs unless you give it the /w
  42.     option (so be careful and do not mix Borland/VisC and Watcom generated
  43.     code)
  44.   The PMWSETUP utility is a great way to manage memory usage and such with
  45.     your EXE files.  But if you have to run that each time you compile your
  46.     project it can become a pain.  Fortunately my BAT files offer a relief.
  47.     When linking is performed and if there is a .SET file with the same name
  48.     as the EXE file to be compiled this SET file will be run as a BAT file
  49.     which could hold the PMWSETUP program or anything else you need to run
  50.     after each time you compile your programs.
  51.     See \test\spawn.set to see what I mean.  To compile the spawn test
  52.     program use "QMAKE SPAWN".
  53.     Note that this SET file is run twice due to problems with PMWSETUP.  It
  54.     seems that after PMWLITE is used the setup info set by PMWSETUP is lost
  55.     so the SET file must be called before using QLITE.  But QSETUP must be
  56.     used before QLITE is used.  Therefore the SET file is run twice, once
  57.     with the parameter "PRE" before QLITE is used (if the /c option is
  58.     given) and once after QLITE given the "POST" option.  spawn.set is
  59.     a bad example since it can not use PMODE/W due to bugs within it.
  60.   When using the .SET files the order in which you use QSETUP, PMWLITE and
  61.     PMWSETUP is very important because PMWLITE strips the PMODEW DOS extender
  62.     and then adds a new one after compression is complete.  So this is the
  63.     prefered order:
  64.       QSETUP - this must be before PMWLITE
  65.       QLITE or PMWLITE - this must be after QSETUP
  66.       PMWSETUP - this must be after PMWLITE and QLITE
  67.     Otherwise options may be wiped out after QLITE or PMWLITE is run.
  68.  
  69. TTYL
  70.  
  71.  
  72.